package com.sale.goods.service;

import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import com.sale.goods.domain.dto.GoodsCostDto;
import com.sale.goods.domain.vo.GoodsCostVo;

/**
 * @Description 成本调整
 * @Date 23-08-08
 * @Author hl
 **/
public interface IGoodsCostService {

    /**
     * 分页查询成本调整
     *
     * @param goodsCostVo,pageQuery
     * @return 成本调整
     */
    TableDataInfo<GoodsCostDto> selectCostList(GoodsCostVo goodsCostVo, PageQuery pageQuery);

    /**
     * 新增成本调整
     *
     * @param goodsCostVo
     * @return int
     */
    int insertCost(GoodsCostVo goodsCostVo);

    /**
     * 查看单个成本调整
     *
     * @param costId
     * @return int
     */
    Object selectCostById(long costId);

    /**
     * 删除单个成本调整
     *
     * @param costId
     * @return int
     */
    int deleteCostById(Long costId);

    /**
     * 修改成本调整
     *
     * @param goodsCostVo
     * @return int
     */
    int updateCostEdit(GoodsCostVo goodsCostVo);

    /**
     * 提交审核
     *
     * @param costId
     * @return int
     */
    int submitReview(Long costId);

    /**
     * 撤销审核
     *
     * @param costId
     * @return int
     */
    int deleteReview(Long costId);

    /**
     * 审核单据
     *
     * @param goodsCostVo
     * @return int
     */
    int goodSExamineReview(GoodsCostVo goodsCostVo);
}
